#include<stdio.h>
int main()
{
    freopen("sort.c","r",stdin);
    char s[1000];

    int f[26]= {0};
    while(gets(s)){
    int i,len=strlen(s);
    for(i=0; i<len; i++)
        if(isalpha(s[i]))
        {
            if(isupper(s[i]))
                f[s[i]-'A']++;
            else
                f[s[i]-'a']++;
        }
    }
    int i;
    for(i=0; i<26; i++)
        if(f[i])printf("%c:%d\n",'a'+i,f[i]);
    return 0;
}
